<script type="text/javascript">
    function deletePaMrCallback(json){
        DWZ.ajaxDone(json);
        if(json.statusCode==DWZ.statusCode.ok){
            if(json.navTabId){
                $.pdialog.reload(json.forwardUrl,json.navTabId);
            }
        }
    }
</script>
<div class="panelBar">
    <ul class="toolBar">
        <li><a class="add" title="添加" href="addPamrUi?paid=<%=paid%>" target="dialog" mask="true" rel="dlg_addpamr"><span>添加</span></a></li>
    </ul>
</div>
<table class="table" width="100%" layoutH="100%" title="返修记录">
    <thead>
    <tr>
        <th width="80" align="center">时间</th>
        <th width="120" align="center">内容</th>
        <th width="50" align="center">删除</th>
    </tr>
    </thead>
    <tbody>
        <%pamrs.forEach(function(pamr){%>
            <tr target="pamrid" rel="<%=pamr._id%>">
                <td><%=pamr.pmt%></td>
                <td><%=pamr.pmc%></td>
                <td>
                    <a title="删除" callback="deletePaMrCallback" rel="deleteMrRel" target="ajaxTodo" href="deletePaMrOne?pamrid=<%=pamr._id%>&paid=<%=paid%>"><img src="./images/btnDel.gif"/></a>
                </td>
            </tr>
        <%})%>
    </tbody>
</table>